package com.wolf.service.impl;

import com.wolf.pojo.Wl_activity_commodity;
import com.wolf.repository.Wl_activity_commodityMapper;
import com.wolf.service.Wl_activity_commodityService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Wl_activity_commodityServiceImpl implements Wl_activity_commodityService{

    @Resource
    Wl_activity_commodityMapper wl_activity_commodityMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_activity_commodityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_activity_commodity record) {
        return wl_activity_commodityMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_activity_commodity record) {
        return wl_activity_commodityMapper.insertSelective(record);
    }

    @Override
    public Wl_activity_commodity selectByPrimaryKey(String id) {
        return wl_activity_commodityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_activity_commodity record) {
        return wl_activity_commodityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_activity_commodity record) {
        return wl_activity_commodityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_activity_commodity> getAll() {
        return wl_activity_commodityMapper.getAll();
    }

    @Override
    public List<Wl_activity_commodity> getByhasFreight() {
        return wl_activity_commodityMapper.getByhasFreight();
    }

    @Override
    public List<Wl_activity_commodity> getByType() {
        return wl_activity_commodityMapper.getByType();
    }

    @Override
    public List<Wl_activity_commodity> getByStatus() {
        return wl_activity_commodityMapper.getByStatus();
    }

    @Override
    public List<Wl_activity_commodity> fuzzyQuery(Integer hasfreight, Integer type, Integer status, String starttime, String expiredtime) {
        return wl_activity_commodityMapper.fuzzyQuery(hasfreight,type,status,starttime,expiredtime);
    }

    @Override
    public Wl_activity_commodity getById(String id) {
        return wl_activity_commodityMapper.getById(id);
    }

    @Override
    public int remove(String id) {
        return wl_activity_commodityMapper.remove(id);
    }
}
